package com.castle.fortress.admin.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.member.dto.MemberDto;
import com.castle.fortress.admin.member.entity.MemberCommentEntity;
import com.castle.fortress.admin.member.dto.MemberCommentDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 会员评论表 服务类
 *
 * @author castle
 * @since 2023-02-20
 */
public interface MemberCommentService extends IService<MemberCommentEntity> {

    /**
     * 分页展示会员评论表列表
     * @param page
     * @param memberCommentDto
     * @return
     */
    IPage<MemberCommentDto> pageMemberComment(Page<MemberCommentDto> page, MemberCommentDto memberCommentDto);


    /**
     * 展示会员评论表列表
     * @param memberCommentDto
     * @return
     */
    List<MemberCommentDto> listMemberComment(MemberCommentDto memberCommentDto);

    IPage<MemberCommentDto> pageMemberCommentExtends(Page<MemberCommentDto> page, MemberCommentDto memberCommentDto, MemberDto member);

    /**
     *
     * @param parentId
     * @return
     */
    List<MemberCommentDto> treeByParentId(Long parentId, MemberDto member);

    List<MemberCommentDto> treeByTargetId(Long targetId, MemberDto member);

    boolean deleteByIdMemberComment(Long id);
}
